/**
 * Copyright (C)  2011  chen wei hua.
 * Permission is granted to copy, distribute and/or modify this document
 * under the terms of the GNU Free Documentation License, Version 2.0
 * or any later version published by the Free Software Foundation;
 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 * A copy of the license is included in the section entitled "GNU Free Documentation License".
 */
package com.javaeye.store.dao;

import java.util.List;

import com.javaeye.common.dao.PageDAO;
import com.javaeye.store.dto.Materials;

public interface MaterialsDAO extends PageDAO {
	
	public Materials getMaterials(int materialsId);
	
	public Materials getMaterialsByCode(String code);
	
	public void saveMaterials(Materials materials);
	
	public void removeMaterials(int materialsId);
	
	public List<Materials> getAutoCompleteMaterials(String name, int size);
	
	public long getCountByCategoryId(int categoryId);
	
}
